<?php
// 本类由系统自动生成，仅供测试用途
class IndexAction extends BaseAction {
    public function index(){
       //var_dump($_SESSION);
       /*  if($_SESSION['userMsg']['userType']==NULL){
            $this->success("未正常登录无法访问！",__ROOT__."/index.php");
            break;
        } */
        $this->assign('users',$_SESSION['userMsg']['userType']);
        $this->assign('userName',$_SESSION['userMsg']['userName']);
        $this->display();
    }
    //退出后台
    public function login(){
        $act=$_GET['act'];
        if($act=='tuichu'){
            session(null);
            $this->success('退出成功',__ROOT__."/index.php");
        }
    }
}